﻿namespace newBlog.CenterInc.model
{
    public class Article_itemDao
    {
        //首页的文章项目
        private int id;
        private string title;

        private int price;
        private string time;
        private string articleimg;
        private string catalog;
        private string describe;
        private int commentCount;
        private string articleContent;
        private string autorImg;//作者头像
        private string autorName;//作者名字
        private int level;//作者等级
        private int autorArticleCount;//作者文章数
        private int followCount;//作者关注人数
        private int fansCount;//作者粉丝
        private string grade;//作者权限
        private string autorID;//作者id
        //文章页面的显示
        public Article_itemDao(int id, string title, int price, string time, string articleimg, string catalog, string describe, int commentCount, string autorImg, string autorName, int level, int autorArticleCount, int followCount, int fansCount, string grade, string articleContent, string autorID)
        {
            this.id = id;
            this.title = title;
            this.price = price;
            this.time = time;
            this.articleimg = articleimg;
            this.catalog = catalog;
            this.describe = describe;
            this.commentCount = commentCount;
            this.autorImg = autorImg;
            this.autorName = autorName;
            this.level = level;
            this.autorArticleCount = autorArticleCount;
            this.followCount = followCount;
            this.fansCount = fansCount;
            this.grade = grade;
            this.articleContent = articleContent;
            this.AutorID = autorID;
        }
        public Article_itemDao(int id, string title, string autorImg, string autorName, int price, string time, string articleimg, string catalog, string describe, int commentCount)
        {
            this.id = id;
            this.title = title;
            this.autorImg = autorImg;
            this.autorName = autorName;
            this.price = price;
            this.time = time;
            this.articleimg = articleimg;
            this.catalog = catalog;
            this.describe = describe;
            this.commentCount = commentCount;
        }//首页的文章显示

        public int Id { get => id; set => id = value; }
        public string Title { get => title; set => title = value; }
        public string AutorImg { get => autorImg; set => autorImg = value; }
        public string AutorName { get => autorName; set => autorName = value; }
        public int Price { get => price; set => price = value; }
        public string Time { get => time; set => time = value; }
        public string Articleimg { get => articleimg; set => articleimg = value; }
        public string Catalog { get => catalog; set => catalog = value; }
        public string Describe { get => describe; set => describe = value; }
        public int CommentCount { get => commentCount; set => commentCount = value; }
        public int Level { get => level; set => level = value; }
        public int AutorArticleCount { get => autorArticleCount; set => autorArticleCount = value; }
        public int FollowCount { get => followCount; set => followCount = value; }
        public int FansCount { get => fansCount; set => fansCount = value; }
        public string Grade { get => grade; set => grade = value; }
        public string ArticleContent { get => articleContent; set => articleContent = value; }
        public string AutorID { get => autorID; set => autorID = value; }
    }
}